package logic;

import graphics.panels.NumberPanel;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ButtonListener implements ActionListener{

	private GameLogic gameLogic;
	private NumberPanel numberPanel;
	
	public ButtonListener (GameLogic gameLogic, NumberPanel numberPanel) {
		this.gameLogic = gameLogic;
		this.numberPanel = numberPanel;
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		gameLogic.buttonPressed(numberPanel);
		
	}

}
